#include <bits/stdc++.h>
#define int long long 
using namespace std;


void solve(){
	int n, a, b;
	cin >> n >> a >> b;
	cout << n-a+b << '\n';
}





signed main(){
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	int t;
	t=1;
	while(t--){
		solve();
	}
	return 0;
}
